import request from '@/utils/request'
export function queryKnowledge(model) {
    return request({
        url: '/KnowledgeController/queryKnowledge',
        method: 'post',
        data: model,

    })
}


export function queryKnowledgeUp(model) {
  return request({
    url: '/KnowledgeController/queryKnowledgeUp',
    method: 'get',
    params: model,

  })
}

export function deleteKnowledge(model) {
    return request({
        url: '/KnowledgeController/deleteKnowledge',
        method: 'post',
        data: model,

    })
}

export function addKnowledge(model) {
    return request({
        url: '/KnowledgeController/addKnowledge',
        method: 'post',
        data: model,

    })
}

export function updateKnowledge(model) {
    return request({
        url: '/KnowledgeController/updateKnowledge',
        method: 'post',
        data: model,

    })
}


export function queryKnowledgeById(model) {
    return request({
        url: '/KnowledgeController/queryKnowledgeById',
        method: 'post',
        data: model,

    })
}
